﻿using System;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace HiCore.Extensions.UnitOfWork.EntityFramework
{

    public interface IUnitOfWork<TContext> : IUnitOfWork where TContext : DbContext
    {
        TContext DbContext { get; }

        Task<int> SaveChangesAsync(bool ensureAutoHistory = false, params IUnitOfWork[] unitOfWorks);
    }
}
